#coding=utf-8
#联系方式 qq:638476



# numbers = [1,3,5,7,8,25,4,20,29];
# 1.对list所有的元素按从小到大的顺序排序
# 2.求list所有元素之和
# 3.将所有元素倒序排列


# num_list = [[1,2],['tom','jim'],(3,4),['ben']]
# num_list[3].insert(1,"kity")
# print(num_list)
# print(num_list[3])
# num_list[1].insert(1,"lucy")
# num_list[1].pop()
# print(num_list)
# num_list.insert(3,(4,5))
# print(num_list)
# num_list.pop(2)
# print(num_list)
# num_list[1].insert(1,[6,7])
# print(num_list)
# print(num_list[-1::-1])



numbers = [1,3,5,7,8,25,4,20,29]
numbers.sort()
print(numbers)
print(sum(numbers))
numbers.sort(reverse=True)
print(numbers)

